package top.rish.utils.excel.bean;

import top.rish.utils.excel.anno.ExcelCell;
import top.rish.utils.excel.anno.ExcelRegex;
import top.rish.utils.excel.convert.ConvertToDate;

import java.util.Date;

/**
 * 回单明细 bean
 */
public class HdmxBean {
    /**
     * 开始日期
     */
    @ExcelCell(descript = "开始日期",required = true, row = 1, col = 1, convert = ConvertToDate.class,
     regex = {
      @ExcelRegex(value = "\\d{4}-\\d{1,2}-\\d{1,2} \\d{1,2}:\\d{1,2}:\\d{1,2}",strict = true,message = "开始日期格式错误!")
    })
    Date ksrq;
    /**
     * 结束日期
     */
    @ExcelCell(descript = "结束日期",required = true, row = 1, col = 3, convert = ConvertToDate.class)
    Date jsrq;
    /**
     * 银行类别编码
     */
    @ExcelCell(descript = "银行类别编码",required = true, row = 1, col = 5)
    String yhlbbm;


    public Date getKsrq() {
        return ksrq;
    }

    public void setKsrq(Date ksrq) {
        this.ksrq = ksrq;
    }

    public Date getJsrq() {
        return jsrq;
    }

    public void setJsrq(Date jsrq) {
        this.jsrq = jsrq;
    }

    public String getYhlbbm() {
        return yhlbbm;
    }

    public void setYhlbbm(String yhlbbm) {
        this.yhlbbm = yhlbbm;
    }

    @Override
    public String toString() {
        return "HdmxBean{" +
                "ksrq=" + ksrq +
                ", jsrq=" + jsrq +
                ", yhlbbm='" + yhlbbm + '\'' +
                '}';
    }
}
